package com.manage.competition.repository;

import com.manage.competition.entity.Competition;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Create with IDEA
 *
 * @Author: gitee.com/KamisamaXX
 * @Date: Create in 19:37 2019/3/24
 * @Description:
 */
public interface CompetitionRepository extends JpaSpecificationExecutor<Competition>,JpaRepository<Competition,Long> {

    /**
     * 根据状态查询
     * @param status
     * @return
     */
    List<Competition> findByStatus(int status);
}
